<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="mfkvit.JdbcBean" %>
<%@ page import="mfkvit.login" %>
<jsp:useBean id="login" class="mfkvit.login" scope="session">
</jsp:useBean>
<%
if(session.isNew()){response.sendRedirect("index.jsp");}
String success=login.getSuccess();
if(success==null){success="";}
if(!(success.equals("ok"))){response.sendRedirect("index.jsp");}
%>
<%      JdbcBean jdbc=new JdbcBean();
         request.setCharacterEncoding("gb2312");
        String sc=request.getParameter("id");
		String condition;
         try {
             if(sc!=null)
                    { condition="delete from sqjm where id="+ sc;
			                          
                     System.out.print(condition);
                   jdbc.execUpdate(condition);
				   response.sendRedirect("sqjm.jsp");
				   
				    }
                  response.sendRedirect("sqjm.jsp");
             }

         catch (Exception ex) { ex.printStackTrace(); }

	%>
	